﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SportsStore.Domain.Abstruct;

namespace SportsStore.WebUI.Controllers
{
    public class ProductController : Controller
    {
        private IProductsRepository reponsitory;
        public ProductController(IProductsRepository responsitorypara)
        {
            this.reponsitory = responsitorypara;
        }
        public ViewResult List()
        {
            return View(reponsitory.Products);
        }
    }
}